package com.cn.data.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author: chenl
 * @Date: 2019/11/14 22:37
 */
public class AopTest {


    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac =
                new AnnotationConfigApplicationContext(AopAppConfig.class);

        AopServiceImpl aopService = (AopServiceImpl) ac.getBean("aopService");
        aopService.consol();
    }

}
